import React from 'react';
import ReactDOM from 'react-dom';
import Root from './pages';
import { Provider } from 'react-redux'
import { HashRouter } from "react-router-dom";
import store from './store'
import { post, get, del, download, put, upload, formData } from './js/request'
import { ConfigProvider } from 'antd';
import zhCN from 'antd/es/locale/zh_CN';
import 'antd/dist/antd.css';
import './common.less'

window.$http = { post, get, del, download, put, upload, formData }

ReactDOM.render(
    <Provider store={store}>
        <HashRouter>
            <ConfigProvider locale={zhCN}>
                <Root />
            </ConfigProvider>
        </HashRouter>
    </Provider>,
    document.getElementById('app')
);
